var id=setInterval(function(){
	$.ajax({
		url: "qrcodeLoginCheck",
		type: "get",
		async:false,
		success: function(result) {
			result=result.substring(20, result.length-7);
			console.log(result)
			var json = JSON.parse(result);
			console.log(json.code+"---"+json.success)
			if(json.code=="10006"){
				console.log(json.url)
				var url=json.url;
				$.ajax({
					url: "getName",
					type: "post",
					data:{
						"url":url
					},
					async:false,
					success: function(result) {
						clear();
						$("#headImage").attr("src","getHeadImage");
						taoqizhi();
						console.log(result)
					}
				})
			}
		}
	})
},500)
function clear(){
	clearTimeout(id) 
}
function taoqizhi(){
	$.ajax({
		url: "getTqValue",
		type: "get",
		async:false,
		success: function(result) {
			console.log(result)
			var json=JSON.parse(result);
			$("#tqz").val(json.data.taoScore)
		}
	})
}